package com.ziyucoding.springboot.labs.lab7.shardingjdbc.readwrite.service;

import com.ziyucoding.springboot.labs.lab7.shardingjdbc.readwrite.dataobject.OrderDO;

/**
 * 订单服务类
 *
 * @author ziyucoding
 * @date 2022-10-31
 **/
public interface OrderService {

    /**
     * 心中订单
     *
     * @param order
     * @return void
     **/
    void add(OrderDO order);

    /**
     * 根据ID查找订单信息
     *
     * @param id
     * @return OrderDO
     **/
    OrderDO findById(Integer id);
}
